﻿using System;

    class TheGreatestOfFive
    {
        static void Main(string[] args)
        {
            int a = int.Parse(Console.ReadLine());
            int b = int.Parse(Console.ReadLine());
            int c = int.Parse(Console.ReadLine());
            int d = int.Parse(Console.ReadLine());
            int e = int.Parse(Console.ReadLine());
            int[] arr = { a, b, c, d, e };
            int greatest = 0;

            for (int i = 0; i <= arr.Length - 1; i++)            
            {
                if (greatest < arr[i])
                {
                    greatest = arr[i];
                }
            }
            Console.WriteLine(greatest);
        }
    }

